<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js" type="text/javascript"></script>
</head>
<body>
    <div id="bind">
    单向数据绑定： <input type="text" v-bind:value="name"/>
     <br/>
    双向数据绑定：<input type="text" v-model:value="name"/>
      
     <!-- 以下语句是错误的，v-model只能绑定在表单类元素上
     <h2 v-model:x="name"></h2> -->
    </div>
    <script type="text/javascript" >
     new Vue({
      el:'#bind',
      data:{
          name:"这是一个1234"
      },
      methods:{
        
      },
     })
     function aa(c){
           c()
        }
        function bb(){
            console.log("bb:"+this)
             aa(()=>{
                console.log("aa:"+this)
             })
        }
    bb();
    </script>
</body>
</html>